#include <iostream>
#include <stdlib.h>
using namespace std;

class Time
{
    public:
        void set_time();
        void show_time();
    private:
        int hour;
        int minute;
        int sec;
};

int main()
{
    //void set_time(Time&);
    //void show_time(Time&);

    Time t1;
    t1.set_time();
    t1.show_time();
    Time t2;
    t2.set_time();
    t2.show_time();
    system("pause");
    return 0;
}

void Time::set_time()
{
    cin>>hour;
    cin>>minute;
    cin>>sec;
}
void Time::show_time()
{

    cout<<hour<<":";
    cout<<minute<<":";
    cout<<sec;

}